File Structures

File structure programs written in C++

Instructions for the programs

All the programs are to be compiled with g++. Simple command to compile them is as follows

$ g++ filename.cpp

This creates the executable code by the name a.out. Program specific instructions are as follows.

Program 1

This programs asks for an input file that contains a list of names/words to reverse. Create the file (using gedit, emacs, vi or any editor of you choice) and then run the executable

$ ./a.out